


#ifndef _STR_SHOW_H_
#define _STR_SHOW_H_

#ifdef __cplusplus
extern "C"
{
#endif

/*
 --- Lab module ---
 Name:show by data stream.
 data:2022-05-24
 author:ZC
 describe:
	 If direct transmit all data once.Prossible block bluetooth,each period block or once timeout.
	This module split data change to stream,ensure not block bluetooth communication.
*/

/* Include all */
#include "IncludeAll.h"
#include "mshow.h"

/* Define a semaphore, to wakeup byte transmit. */
#define xSemaphoreStreamShowWakeup() osal_set_event(ucTaskIdShow , evtShowStrSemaphore)

/* recommend stream buffer size. */
#define userConfig_LCD_SEND_WAITING_TIME 2
#define userConfig_STREAM_SHOW_SIZE 128

/* LCD function. */
void vStreamShowInit(uint16 usSpace);
void vStreamShowDelete(void);

/* Write refresh data to LCD. */
void vStreamShowWriteRefreshData(uint8* pcData, uint8 ucNfBytes);
void vStreamShowLoopTransmit(void);


#ifdef __cplusplus
}
#endif

#endif /* endif */














